﻿using Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace ExtensionsTests
{
    /// <summary>
    /// Contains all test for string extension methods
    /// </summary>
    [TestClass]
    public class StringTest
    {
        [TestMethod]
        public void Reverse_PalindromeStringIsTheSameReversed()
        {
            string palindrome = "sator arepo tenet opera rotas";
            Assert.AreEqual( palindrome, palindrome.Reverse() );
        }

        [TestMethod]
        public void Reverse_NotPalindromeStringIsNotTheSameReversed()
        {
            string test = "test";
            Assert.AreNotEqual( test, test.Reverse() );
        }
    }
}